home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / GXFonts.h < prev    next >
Text File  |  1995-07-06  |  8KB  |  174 lines

  1. /*
  2.      File:        GXFonts.h
  3.  
  4.      Contains:    QuickDraw GX font routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __GXFONTS__
  21. #define __GXFONTS__
  22.  
  23.  
  24. #ifndef __CONDITIONALMACROS__
  25. #include <ConditionalMacros.h>
  26. #endif
  27.  
  28. #ifndef __GXMATH__
  29. #include <GXMath.h>
  30. #endif
  31. /*    #include <Types.h>                                            */
  32. /*    #include <FixMath.h>                                        */
  33.  
  34. #ifndef __GXTYPES__
  35. #include <GXTypes.h>
  36. #endif
  37. /*    #include <MixedMode.h>                                        */
  38.  
  39. #ifndef __SCALERTYPES__
  40. #include <ScalerTypes.h>
  41. #endif
  42. /*    #include <SFNTTypes.h>                                        */
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47.  
  48. #if PRAGMA_ALIGN_SUPPORTED
  49. #pragma options align=mac68k
  50. #endif
  51.  
  52. #if PRAGMA_IMPORT_SUPPORTED
  53. #pragma import on
  54. #endif
  55.  
  56. #if defined(__MWERKS__) && GENERATING68K
  57.     #pragma push
  58.     #pragma pointers_in_D0
  59. #endif
  60.  
  61. #define fontRoutinesIncludes
  62. /* old header = font routines */
  63.  
  64. extern gxFont GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  65.  THREEWORDINLINE(0x303C, 0x201, 0xA832);
  66. extern gxFontStorageTag GXGetFont(gxFont fontID, gxFontStorageReference *reference, gxFontAttribute *attributes)
  67.  THREEWORDINLINE(0x303C, 0x202, 0xA832);
  68. extern gxFont GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute *attributes)
  69.  THREEWORDINLINE(0x303C, 0x203, 0xA832);
  70. extern void GXSetFont(gxFont fontID, gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  71.  THREEWORDINLINE(0x303C, 0x204, 0xA832);
  72. extern void GXDisposeFont(gxFont fontID)
  73.  THREEWORDINLINE(0x303C, 0x205, 0xA832);
  74. extern void GXChangedFont(gxFont fontID)
  75.  THREEWORDINLINE(0x303C, 0x206, 0xA832);
  76. extern gxFontFormatTag GXGetFontFormat(gxFont fontID)
  77.  THREEWORDINLINE(0x303C, 0x207, 0xA832);
  78. extern gxFont GXGetDefaultFont(void)
  79.  THREEWORDINLINE(0x303C, 0x208, 0xA832);
  80. extern gxFont GXSetDefaultFont(gxFont fontID)
  81.  THREEWORDINLINE(0x303C, 0x209, 0xA832);
  82. extern long GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[], long index, long count, gxFont fonts[])
  83.  THREEWORDINLINE(0x303C, 0x20a, 0xA832);
  84. extern long GXCountFontGlyphs(gxFont fontID)
  85.  THREEWORDINLINE(0x303C, 0x20b, 0xA832);
  86. extern long GXCountFontTables(gxFont fontID)
  87.  THREEWORDINLINE(0x303C, 0x20c, 0xA832);
  88. extern long GXGetFontTable(gxFont fontID, long index, void *tableData, gxFontTableTag *tableTag)
  89.  THREEWORDINLINE(0x303C, 0x20d, 0xA832);
  90. extern long GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void *tableData, long *index)
  91.  THREEWORDINLINE(0x303C, 0x20e, 0xA832);
  92. extern long GXGetFontTableParts(gxFont fontID, long index, long offset, long length, void *tableData, gxFontTableTag *tableTag)
  93.  THREEWORDINLINE(0x303C, 0x20f, 0xA832);
  94. extern long GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset, long length, void *tableData, long *index)
  95.  THREEWORDINLINE(0x303C, 0x210, 0xA832);
  96. extern long GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length, const void *tableData)
  97.  THREEWORDINLINE(0x303C, 0x211, 0xA832);
  98. extern long GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag, long offset, long oldLength, long newLength, const void *tableData)
  99.  THREEWORDINLINE(0x303C, 0x212, 0xA832);
  100. extern long GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag)
  101.  THREEWORDINLINE(0x303C, 0x213, 0xA832);
  102. extern long GXCountFontNames(gxFont fontID)
  103.  THREEWORDINLINE(0x303C, 0x214, 0xA832);
  104. extern long GXGetFontName(gxFont fontID, long index, gxFontName *name, gxFontPlatform *platform, gxFontScript *script, gxFontLanguage *language, unsigned char text[])
  105.  THREEWORDINLINE(0x303C, 0x215, 0xA832);
  106. extern long GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, unsigned char text[], long *index)
  107.  THREEWORDINLINE(0x303C, 0x216, 0xA832);
  108. extern long GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[])
  109.  THREEWORDINLINE(0x303C, 0x217, 0xA832);
  110. extern long GXDeleteFontName(gxFont fontID, long index, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  111.  THREEWORDINLINE(0x303C, 0x218, 0xA832);
  112. extern gxFontName GXNewFontNameID(gxFont fontID)
  113.  THREEWORDINLINE(0x303C, 0x219, 0xA832);
  114. extern long GXCountFontEncodings(gxFont fontID)
  115.  THREEWORDINLINE(0x303C, 0x21a, 0xA832);
  116. extern gxFontPlatform GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script, gxFontLanguage *language)
  117.  THREEWORDINLINE(0x303C, 0x21b, 0xA832);
  118. extern long GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  119.  THREEWORDINLINE(0x303C, 0x21c, 0xA832);
  120. extern long GXApplyFontEncoding(gxFont fontID, long index, long *length, const unsigned char text[], long count, unsigned short glyphs[], char was16Bit[])
  121.  THREEWORDINLINE(0x303C, 0x21d, 0xA832);
  122. extern long GXCountFontVariations(gxFont fontID)
  123.  THREEWORDINLINE(0x303C, 0x21e, 0xA832);
  124. extern long GXFindFontVariation(gxFont fontID, gxFontVariationTag variationTag, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  125.  THREEWORDINLINE(0x303C, 0x21f, 0xA832);
  126. extern gxFontVariationTag GXGetFontVariation(gxFont fontID, long index, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  127.  THREEWORDINLINE(0x303C, 0x220, 0xA832);
  128. extern long GXCountFontInstances(gxFont fontID)
  129.  THREEWORDINLINE(0x303C, 0x221, 0xA832);
  130. extern gxFontName GXGetFontInstance(gxFont fontID, long index, gxFontVariation variation[])
  131.  THREEWORDINLINE(0x303C, 0x222, 0xA832);
  132. extern long GXSetFontInstance(gxFont fontID, long index, gxFontName name, const gxFontVariation variation[])
  133.  THREEWORDINLINE(0x303C, 0x223, 0xA832);
  134. extern long GXDeleteFontInstance(gxFont fontID, long index, gxFontName name)
  135.  THREEWORDINLINE(0x303C, 0x224, 0xA832);
  136. extern long GXCountFontDescriptors(gxFont fontID)
  137.  THREEWORDINLINE(0x303C, 0x225, 0xA832);
  138. extern gxFontDescriptorTag GXGetFontDescriptor(gxFont fontID, long index, Fixed *descriptorValue)
  139.  THREEWORDINLINE(0x303C, 0x226, 0xA832);
  140. extern long GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag, Fixed *descriptorValue)
  141.  THREEWORDINLINE(0x303C, 0x227, 0xA832);
  142. extern long GXSetFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag, Fixed descriptorValue)
  143.  THREEWORDINLINE(0x303C, 0x228, 0xA832);
  144. extern long GXDeleteFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag)
  145.  THREEWORDINLINE(0x303C, 0x229, 0xA832);
  146. extern long GXCountFontFeatures(gxFont fontID)
  147.  THREEWORDINLINE(0x303C, 0x22a, 0xA832);
  148. extern gxFontName GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[], gxFontFeature *feature)
  149.  THREEWORDINLINE(0x303C, 0x22b, 0xA832);
  150. extern gxFontName GXFindFontFeature(gxFont fontID, gxFontFeature feature, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[], long *index)
  151.  THREEWORDINLINE(0x303C, 0x22c, 0xA832);
  152. extern long GXGetFontDefaultFeatures(gxFont fontID, gxRunFeature features[])
  153.  THREEWORDINLINE(0x303C, 0x274, 0xA832);
  154. extern void GXFlattenFont(gxFont source, scalerStream *stream, gxSpoolBlock *block)
  155.  THREEWORDINLINE(0x303C, 0x22d, 0xA832);
  156.  
  157. #if defined(__MWERKS__) && GENERATING68K
  158.     #pragma pop
  159. #endif
  160.  
  161. #if PRAGMA_IMPORT_SUPPORTED
  162. #pragma import off
  163. #endif
  164.  
  165. #if PRAGMA_ALIGN_SUPPORTED
  166. #pragma options align=reset
  167. #endif
  168.  
  169. #ifdef __cplusplus
  170. }
  171. #endif
  172.  
  173. #endif /* __GXFONTS__ */
  174.